package com.gg;

import com.gg.mapper.CourseMapper;
import com.gg.entity.Course;
import com.gg.utils.MybatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class testCourse {
    //查询所有
    @Test
    public void t1() {
        SqlSession session = MybatisUtil.getSession();
        List<Course> courses = session.getMapper(CourseMapper.class).selectAllCourse(1);
        for (Course cours : courses) {
            System.out.println(cours);
        }
    }
}
